from django.urls import path
from . import views


app_name = "cms"


urlpatterns = [
    path('', views.index, name='cms_index'),
    path('write_news/', views.WriteNewsView.as_view(), name='write_news'),
    path('category_news/', views.category_news, name='category_news'),
    path('add_category_news/', views.add_category_news, name='add_category_news'),
    path('edit_category_news/', views.edit_category, name='edit_category_news'),
    path('delete_category_news/', views.delete_category, name='delete_category_news'),
    path('upload_file/', views.upload_file, name='upload_file'),
    path('news_list/', views.NewsListView.as_view(), name='news_list'),
    path('edit_news/', views.EditNewsView.as_view(), name='edit_news'),
    path('detele_news/', views.delete_news, name='delete_news'),
    path('pub_course/', views.PubCourse.as_view(), name='pub_course')
]
